/*单行溢出省略*/

@mixin oneLineEsp($width) {
    white-space: nowrap;
    max-width: $width;
    overflow: hidden;
    text-overflow: ellipsis;
}

@mixin clearfix() {
    *zoom: 1;
    &:after {
        display: block;
        content: "clear";
        height: 0;
        line-height: 0;
        clear: both;
        overflow: hidden;
        visibility: hidden;
    }
}

//滚动条样式优化
@mixin scrollbar() {
    &::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 6px;
        /*高宽分别对应横竖滚动条的尺寸*/
        height: 6px;
    }
    &::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: rgb(195, 206, 213);
    }
    &::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        background: rgba(1, 169, 154, 0);
    }
}

